//
//  XYColorCollectionViewCell.m
//  XYSfxyxuSwift
//
//  Created by 许洋 on 2018/4/13.
//  Copyright © 2018年 许洋. All rights reserved.
//

#import "XYColorCollectionViewCell.h"
@interface XYColorCollectionViewCell()

@property (nonatomic,strong) UIColor *borderColor;

@end

@implementation XYColorCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    _titleLabel.layer.masksToBounds = YES;
    _titleLabel.layer.cornerRadius = 5;
    _titleLabel.layer.borderWidth = 1.5;
    _titleLabel.layer.borderColor = [UIColor lightGrayColor].CGColor;

}
-(void)setModel:(XYGPUFilterModel *)model{
    _model = model;
    self.titleLabel.text = model.title;
}
-(void)setSelected:(BOOL)selected{
    [super setSelected:selected];
    _titleLabel.layer.borderColor = self.selected ? [UIColor blueColor].CGColor : [UIColor lightGrayColor].CGColor;
}
//- (void)layoutSubviews{
//    [super layoutSubviews];
//}

@end
